﻿using MimeKit;

namespace FastEasy.Common.Mail
{
    public class Mime
    {
        /// <summary>
        /// 主题
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public TextPart Body { get; set; }

        /// <summary>
        /// 发送人，默认为“官方”
        /// </summary>
        public MailboxAddress From { get; set; } = new MailboxAddress("神里凌华", "ourblog163@163.com");

        /// <summary>
        /// 邮箱SMTP授权码
        /// </summary>
        public string Code { get; set; } = "HYGPSFWQQXSSLFAX";

        /// <summary>
        /// 接收人
        /// </summary>
        public MailboxAddress To { get; set; }

        /// <summary>
        /// 465加密25不加密
        /// </summary>
        public int Port { get; set; } = 465;
    }
}